{extend name="Public/base"/}
{block name="style"}
<link rel="stylesheet" href="__PUBLIC__/plugs/tagsinput/bootstrap-tagsinput.css">
<script src="__PUBLIC__/plugs/tagsinput/bootstrap-tagsinput.js"></script>

<link rel="stylesheet" type="text/css" href="__PUBLIC__/plugs/webuploader/webuploader.css">
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/plugs/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/plugs/ueditor/ueditor.all.min.js"></script>

{/block}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
		<div class="pull-right">
			
		</div>
	</header>
	<div class="main-box-body clearfix">
		<form action="{:U('saveConfig')}" method="post" class="form form-horizontal">
			{volist name="fieldList" id="fl"}
				{if condition="$fl['type'] == 'group'"}
					<div class="tabs-wrapper">
						<ul class="nav nav-tabs">
							{volist name="fieldList['group']['options']" id="vGroup"}
							<li {if condition="$i eq 1"}class="active"{/if}><a href="#tab{$key}" data-toggle="tab">{$vGroup['title']}</a></li>
							{/volist}
						</ul>
						<div class="tab-content">
							{volist name="fieldList['group']['options']" id="vGroup"}
							<div class="tab-pane fade {if condition="$i eq 1"}in active{/if}" id="tab{$key}">
								{volist name="vGroup['options']" id="field"}
								{if condition="$field['type'] eq 'hidden'"}
								<input type="hidden" name="{$field['name']}" value="{$field['value']}"/>
								{else/}
								<div class="form-group">
									<label class="col-lg-2 control-label">{$field['title']|htmlspecialchars}</label>
									<div class="col-lg-8 col-sm-10">
										{:W('Common/Form/show',array($field['type'],$key,$field['value'],'',$field['opt']))}
										<span class="help-block">{$field['tip']}</span>
									</div>
								</div>
								{/if}
								{/volist}
							</div>
							{/volist}
						</div>
					</div>
				{else /}
					<div class="form-group">
						<label class="col-lg-2 control-label">{$fl['title']|htmlspecialchars}</label>
						<div class="col-lg-8 col-sm-10">
							{:W('Common/Form/show',array($fl['type'],$key,$fl['value'],'',$fl['options']))}
							<span class="help-block">{$fl['tip']}</span>
						</div>
					</div>
				{/if}
			{/volist}
			<div class="form-group">
				<div class="col-lg-offset-2 col-lg-10">
					<input type="hidden" name="id" value="{$info['id']}">
					<button type="submit" class="btn btn-success submit-btn ajax-post" target-form="form">确认提交</button>
					<button class="btn btn-danger btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
				</div>
			</div>
		</form>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__PUBLIC__/plugs/webuploader/webuploader.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/plugs/webuploader/webuploader.custom.js"></script>
{/block}